package com.example.demo.entity;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

public class User implements Serializable {

    @NotBlank(message = "{required}")
    private String name;

    @NotBlank(message = "{required}")
    @Email(message = "{invalid}")
    private String email;
}
